home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / Implementation / Storage / Storage.r < prev    next >
Encoding:
Text File  |  1997-02-13  |  2.6 KB  |  139 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        Storage.r
  3.  
  4.     Contains:    Resources for the Storage subsystem
  5.  
  6.     Owned by:    David McCusker
  7.  
  8.     Copyright:    © 1996 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.  
  12.          <6>     9/18/96    TJ        1384389 Remove RSRC names in Non-Debug
  13.                                     Builds.
  14.          <5>     9/10/96    eeh        1384356: make resources purgeable
  15.          <4>     6/22/96    EL        1344140: resource for cannot load part
  16.                                     alert.
  17.          <3>      4/9/96    DH        1308248: 1.0.2 Drag of no-part to trash is
  18.                                     rejected. Added unknown category string
  19.                                     resource. 1296171:
  20.          <2>    .03.1996    NP        Added comment.
  21.          <1>    .03.1996    NP        first checked in
  22.     To Do:
  23. */
  24.  
  25. #define SystemSevenOrBetter 1            // we want the extended types
  26. #define    SystemSevenOrLater    1            // Types.r uses this variable
  27.  
  28. #ifndef __TYPES_R__
  29. #include "Types.r"
  30. #endif
  31.  
  32. #ifndef _STORRSRC_
  33. #include "StorRsrc.h"
  34. #endif
  35.  
  36. resource 'ALRT' (kODAlertFatalContainerError,
  37. #if ODDEBUG
  38. "Fatal Bento Error",
  39. #endif
  40. preload, purgeable /*<eeh> added for 1384356*/) {
  41.     {40, 40, 142, 318},
  42.     560,
  43.     {    /* array: 4 elements */
  44.         /* [1] */
  45.         OK, visible, sound1,
  46.         /* [2] */
  47.         OK, visible, sound1,
  48.         /* [3] */
  49.         OK, visible, sound1,
  50.         /* [4] */
  51.         OK, visible, sound1
  52.     },
  53.     alertPositionMainScreen
  54. };
  55.  
  56. /* NOTE THAT WE EXPLICITLY USE ICON #0 IN THIS DITL RATHER THAN CALLING
  57.     StopAlert TO INSERT THE ICON. WE DO THIS BECAUSE WE WANT TO MAKE SURE
  58.     THE ICON IS ALWAYS LOADED INTO MEMORY */
  59.  
  60. resource 'DITL' (kODAlertFatalContainerError,
  61. #if ODDEBUG
  62. "Fatal Bento Error",
  63. #endif
  64. purgeable /*<eeh> added for 1384356*/, preload) {
  65.     {    /* array DITLarray: 3 elements */
  66.         /* [1] */
  67.         {69, 201, 89, 263},
  68.         Button {
  69.             enabled,
  70.             "Quit"
  71.         },
  72.         /* [2] */
  73.         {10, 72, 58, 265},
  74.         StaticText {
  75.             disabled,
  76.             "Sorry, this document must immediately qu"
  77.             "it due to a fatal storage error."
  78.         },
  79.         /* [3] */
  80.         {11, 20, 43, 52},
  81.         Icon {
  82.             disabled,
  83.             0
  84.         }
  85.     }
  86. };
  87.  
  88. resource 'STR ' (kODUnknownCategoryStr
  89. #If ODDebug
  90. , "Unknown Category Name"
  91. #endif
  92. ) {
  93.     "Unknown Category"
  94. };
  95.  
  96. resource 'ALRT' (kODAlertCannotLoadPartError,purgeable) {
  97.     {80, 80, 258, 462},
  98.     kODAlertCannotLoadPartError,
  99.     {    /* array: 4 elements */
  100.         /* [1] */
  101.         OK, visible, sound1;
  102.         /* [2] */
  103.         OK, visible, sound1;
  104.         /* [3] */
  105.         OK, visible, sound1;
  106.         /* [4] */
  107.         OK, visible, sound1
  108.     }
  109. #if SystemSevenOrLater
  110.     ,
  111.     alertPositionParentWindowScreen
  112. #endif
  113. };
  114.  
  115. resource 'DITL' (kODAlertCannotLoadPartError,purgeable) {
  116.     {    /* array DITLarray: 3 elements */
  117.         /* [1] */
  118.         {140, 258, 158, 332},
  119.         Button {
  120.             enabled,
  121.             "OK"
  122.         },
  123.         /* [2] */
  124.         {10, 70, 135, 332},
  125.         StaticText {
  126.             disabled,
  127.             "The part editor “^0” could not be loaded"
  128.             ". Try reinstalling it."
  129.         },
  130.         /* [4] */
  131.         {10, 20, 42, 52},
  132.         Icon {
  133.             disabled,
  134.             2
  135.         }
  136.     }
  137. };
  138.  
  139.